package com.lightjet.macross.base.upms.repository;

import com.lightjet.macross.base.upms.domain.RoleInfo;
import com.lightjet.macross.base.upms.domain.RoleResourceLink;
import com.lightjet.macross.common.core.BaseRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("roleResourceMapRepository")
public interface RoleResourceLinkRepository extends BaseRepository<RoleResourceLink, Integer> {

    //根据角色获取角色拥有的资源
    List<RoleResourceLink> findByRoleinfoOrderByResourceInfo_Orderno(RoleInfo roleInfo);

}
